home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 1.iso
/
toolbox
/
src
/
demos
/
OpenGL
/
insect
/
Makefile
< prev
next >
Wrap
Makefile
|
1996-11-11
|
763b
|
40 lines
#!smake
include $(ROOT)/usr/include/make/commondefs
SUBDIRS = libtk
LIBTK = ./libtk/libtk.a
LCDEFS = -DUNIX -D_GL_X -Dmips -D_GL_DOUBLE -D__STDC__=1
LCINCS = -I$(ROOT)/usr/include/GL -I./libtk
LLDLIBS = -lGLU -lGL -lXext -lX11 -lm
LDIRT != echo libtk/*.o $(LIBTK)
TARGETS = insect
CFILES = gl42ogl.c insect.c mat.c parts.c
all: $(TARGETS)
default: all
@for d in $(SUBDIRS); do \
if [ -d $$d ] ; then \
echo "====\tcd $$d; $(MAKE) $@"; \
( cd $$d; $(MAKE) $@; ) ; \
fi ; \
done
$(LIBTK): $(_FORCE)
@for d in $(SUBDIRS); do \
if [ -d $$d ] ; then \
echo "====\tcd $$d; $(MAKE) $${d}.a"; \
( cd $$d; $(MAKE) $${d}.a; ) ; \
fi ; \
done
include $(COMMONRULES)
insect: $(OBJECTS) $(LIBTK)
$(CCF) -o $@ $(OBJECTS) $(LIBTK) $(LDFLAGS)